package exsun.jt808.data.util.executorsThread;

import org.apache.ibatis.jdbc.Null;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Lock;

public class FixedThreadHandle
{
    public static FixedThreadHandle inst;
    public static Object instLock = new Object();


    public static FixedThreadHandle getInst(){
        if(inst == null){
            synchronized (instLock){
                if(inst == null){
                    inst = new FixedThreadHandle();
                }
            }
        }
        return inst;
    }

    private ExecutorService service = Executors.newFixedThreadPool(1);

    public ExecutorService getService() {
        return service;
    }



}
